<!--
 * @Descripttion: 
 * @Author: chendingfengmail@163.com
 * @version: 
 * @Date: 2021-04-07 08:21:18
 * @LastEditors: chendingfengmail@163.com
 * @LastEditTime: 2021-04-07 08:28:25
-->
<template>
  <svg aria-hidden="true">
    <use :xlink:href="icon"></use>
  </svg>
</template>

<script>
export default {
  name: 'dd-icon-svg',
  props: {
    name: {
      type: String,
      required: true
    }
  },
  computed: {
    icon () {
      return `#icon-${this.name}`
    }
  }
}
</script>
